//
//  AudioApplyViewCell.h
//  CommunityNannyO2O
//
//  Created by apple on 15/8/13.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import "AudioApplyViewCell.h"
#import "APIAdress.h"
#import "MBProgressHUD+YC.h"
#import "MJExtension.h"
#import "AccountTool.h"
#import "UIViewController+Create.h"
#import "CustomTextField.h"
#import "AppConfig.h"
#import "QXNetWorkTool.h"

@interface AudioApplyViewCell()<QXNetWorkToolDelegate>

@property (weak, nonatomic) IBOutlet UIButton *cancel;
@property (weak, nonatomic) IBOutlet UIButton *apply;
@property (weak, nonatomic) IBOutlet UILabel *clickAdd;
@property (weak, nonatomic) IBOutlet UILabel *addSurface;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *introduction;


@end

@implementation AudioApplyViewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"AudioApplyViewCell";
    AudioApplyViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

-(void)awakeFromNib
{
    if (self.applyType == 0) //音频
    {
        self.clickAdd.text = @"点击添加音频";
        self.addSurface.text = @"点击添加音频封面";
        self.name.text = @"音频名称";
        self.introduction.text = @"音频介绍";
    }
    else  //视频
    {
        self.clickAdd.text = @"点击添加视频";
        self.addSurface.text = @"点击添加视频封面";
        self.name.text = @"视频名称";
        self.introduction.text = @"视频介绍";
    }
    
    self.cancel.layer.cornerRadius = 5;
    self.cancel.layer.masksToBounds = YES;

    self.apply.layer.cornerRadius = 5;
    self.apply.layer.masksToBounds = YES;
}


@end




















